/*
 * Created on Jul 17, 2005
 *
 */
package org.mushroomdb.interceptor;

import org.mushroomdb.catalog.Register;
import org.mushroomdb.catalog.Table;

/**
 * This abstract interceptor allows the Interceptor's subclasses
 * just to implement the events they need.
 * 
 * @author Matu
 *
 */
public class AbstractInterceptor implements Interceptor {

	/**
	 * Constructor default
	 */
	public AbstractInterceptor() {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#beforeCreate(com.mdlm.rdbms.catalog.Table)
	 */
	public void beforeCreate(Table table) {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#afterCreate(com.mdlm.rdbms.catalog.Table)
	 */
	public void afterCreate(Table table) {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#createException(org.mushroomdb.catalog.Table, java.lang.Throwable)
	 */
	public void createException(Table table, Throwable t) {
	}
	
	/**
	 * @see org.mushroomdb.interceptor.Interceptor#beforeDrop(com.mdlm.rdbms.catalog.Table)
	 */
	public void beforeDrop(Table table) {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#afterDrop(com.mdlm.rdbms.catalog.Table)
	 */
	public void afterDrop(Table table) {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#dropException(org.mushroomdb.catalog.Table, java.lang.Throwable)
	 */
	public void dropException(Table table, Throwable t) {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#beforeSelect(org.mushroomdb.catalog.Table)
	 */
	public void beforeSelect(Table table) {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#afterSelect(org.mushroomdb.catalog.Table)
	 */
	public void afterSelect(Table table) {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#selectException(org.mushroomdb.catalog.Table, java.lang.Throwable)
	 */
	public void selectException(Table table, Throwable t) {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#beforeInsert(com.mdlm.rdbms.catalog.Register, com.mdlm.rdbms.catalog.Table)
	 */
	public void beforeInsert(Register register, Table table) {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#afterInsert(com.mdlm.rdbms.catalog.Register, com.mdlm.rdbms.catalog.Table)
	 */
	public void afterInsert(Register register, Table table) {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#insertException(org.mushroomdb.catalog.Register, org.mushroomdb.catalog.Table, java.lang.Throwable)
	 */
	public void insertException(Register register, Table table, Throwable t) {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#beforeUpdate(com.mdlm.rdbms.catalog.Register, com.mdlm.rdbms.catalog.Table)
	 */
	public void beforeUpdate(Register register, int columnIndex, Object value, Table table) {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#afterUpdate(com.mdlm.rdbms.catalog.Register, com.mdlm.rdbms.catalog.Table)
	 */
	public void afterUpdate(Register register, int columnIndex, Object value, Table table) {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#updateException(org.mushroomdb.catalog.Register, int, java.lang.Object, org.mushroomdb.catalog.Table, java.lang.Throwable)
	 */
	public void updateException(Register register, int columnIndex, Object object, Table table, Throwable t) {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#beforeDelete(com.mdlm.rdbms.catalog.Register, com.mdlm.rdbms.catalog.Table)
	 */
	public void beforeDelete(Register register, Table table) {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#afterDelete(com.mdlm.rdbms.catalog.Register, com.mdlm.rdbms.catalog.Table)
	 */
	public void afterDelete(Register register, Table table) {
	}

	/**
	 * @see org.mushroomdb.interceptor.Interceptor#deleteException(org.mushroomdb.catalog.Register, org.mushroomdb.catalog.Table, java.lang.Throwable)
	 */
	public void deleteException(Register register, Table table, Throwable t) {
	}

   
    public void beforeCommit() {
              
    }
   
    public void afterCommit() {
              
    }
}
